<%@ Page Title="" Language="C#" MasterPageFile="~/Maestro.master" AutoEventWireup="true" CodeFile="PresupuestoPlantilla.aspx.cs" Inherits="PresupuestoPlantilla" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

.dxbButton_Aqua
{	
    color: #2C4D79;   
    font-size: 9pt;
    font-family: Tahoma;				    
	font-weight:normal;    
    vertical-align: middle;	 		
    border: solid 1px #A3C0E8;	
    background: #E2F0FF url('mvwres://DevExpress.Web.ASPxThemes.v9.2,%20Version=9.2.6.0,%20Culture=neutral,%20PublicKeyToken=b88d1754d700e49a/edtButtonBack.gif') repeat-x 50% top;
    padding: 1px 1px 1px 1px;
	cursor: pointer;
}
        .style1
        {
            border-style: none;
            border-color: inherit;
            border-width: 0px;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 2px;
            padding-bottom: 3px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <asp:FormView ID="fvElementoNuevo" runat="server" DataSourceID="dsElementoNuevo" 
                    DefaultMode="Insert">
                    <EditItemTemplate>
                        ReponerCantidadString:
                        <asp:TextBox ID="ReponerCantidadStringTextBox" runat="server" 
                            Text='<%# Bind("ReponerCantidadString") %>' />
                        <br />
                        ReacondicionarCantidadString:
                        <asp:TextBox ID="ReacondicionarCantidadStringTextBox" runat="server" 
                            Text='<%# Bind("ReacondicionarCantidadString") %>' />
                        <br />
                        PintarCantidadString:
                        <asp:TextBox ID="PintarCantidadStringTextBox" runat="server" 
                            Text='<%# Bind("PintarCantidadString") %>' />
                        <br />
                        ID:
                        <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' />
                        <br />
                        Item:
                        <asp:TextBox ID="ItemTextBox" runat="server" Text='<%# Bind("Item") %>' />
                        <br />
                        SubGrupo:
                        <asp:TextBox ID="SubGrupoTextBox" runat="server" 
                            Text='<%# Bind("SubGrupo") %>' />
                        <br />
                        Grupo:
                        <asp:TextBox ID="GrupoTextBox" runat="server" Text='<%# Bind("Grupo") %>' />
                        <br />
                        Unidad:
                        <asp:TextBox ID="UnidadTextBox" runat="server" Text='<%# Bind("Unidad") %>' />
                        <br />
                        Controlar:
                        <asp:CheckBox ID="ControlarCheckBox" runat="server" 
                            Checked='<%# Bind("Controlar") %>' />
                        <br />
                        Pintar:
                        <asp:CheckBox ID="PintarCheckBox" runat="server" 
                            Checked='<%# Bind("Pintar") %>' />
                        <br />
                        Reacondicionar:
                        <asp:CheckBox ID="ReacondicionarCheckBox" runat="server" 
                            Checked='<%# Bind("Reacondicionar") %>' />
                        <br />
                        Reponer:
                        <asp:CheckBox ID="ReponerCheckBox" runat="server" 
                            Checked='<%# Bind("Reponer") %>' />
                        <br />
                        Columna:
                        <asp:TextBox ID="ColumnaTextBox" runat="server" Text='<%# Bind("Columna") %>' />
                        <br />
                        Orden:
                        <asp:TextBox ID="OrdenTextBox" runat="server" Text='<%# Bind("Orden") %>' />
                        <br />
                        IdPresupuesto:
                        <asp:TextBox ID="IdPresupuestoTextBox" runat="server" 
                            Text='<%# Bind("IdPresupuesto") %>' />
                        <br />
                        ReponerCantidad:
                        <asp:TextBox ID="ReponerCantidadTextBox" runat="server" 
                            Text='<%# Bind("ReponerCantidad") %>' />
                        <br />
                        ReacondicionarCantidad:
                        <asp:TextBox ID="ReacondicionarCantidadTextBox" runat="server" 
                            Text='<%# Bind("ReacondicionarCantidad") %>' />
                        <br />
                        PintarCantidad:
                        <asp:TextBox ID="PintarCantidadTextBox" runat="server" 
                            Text='<%# Bind("PintarCantidad") %>' />
                        <br />
                        EsExtra:
                        <asp:CheckBox ID="EsExtraCheckBox" runat="server" 
                            Checked='<%# Bind("EsExtra") %>' />
                        <br />
                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Update" />
                        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <table cellpadding="0" cellspacing="0">
                            
                            <tr>
                                <td align="center" bgcolor="#C0DDE0" style="border: 1px solid #7eacb1">Grupo</td>
                                <td align="center" bgcolor="#C0DDE0" style="border: 1px solid #7eacb1">Sub Grupo</td>
                                <td align="center" bgcolor="#C0DDE0" style="border: 1px solid #7eacb1">Item</td>
                                <td align="center" bgcolor="#C0DDE0" style="border: 1px solid #7eacb1">Columna</td>
                                <td align="center" bgcolor="#C0DDE0" style="border: 1px solid #7eacb1">Orden</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="dsGrupos" 
                                        DataTextField="Grupo" DataValueField="Grupo" 
                                        SelectedValue='<%# Bind("Grupo") %>'>
                                    </asp:DropDownList>
                                    <asp:SqlDataSource ID="dsGrupos" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:TallerBDConnectionString %>" SelectCommand="Select distinct Grupo
From Elemento"></asp:SqlDataSource>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="dsSubGrupo" 
                                        DataTextField="SubGrupo" DataValueField="SubGrupo" 
                                        SelectedValue='<%# Bind("SubGrupo") %>'>
                                    </asp:DropDownList>
                                    <asp:SqlDataSource ID="dsSubGrupo" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:TallerBDConnectionString %>" SelectCommand="Select Distinct SubGrupo
From Elemento"></asp:SqlDataSource>
                                </td>
                                <td>
                                    <asp:TextBox ID="ItemTextBox" runat="server" Text='<%# Bind("Item") %>' />
                                </td>
                                <td>
                                    <asp:DropDownList ID="ColumnaDdl" runat="server" 
                                        SelectedValue='<%# Bind("Columna") %>'>
                                        <asp:ListItem Selected="True" Value="11">Superior izquierda</asp:ListItem>
                                        <asp:ListItem Value="12">Superior derecha</asp:ListItem>
                                        <asp:ListItem Value="21">Inferior izquierda</asp:ListItem>
                                        <asp:ListItem Value="22">Inferior derecha</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="OrdenDdl" runat="server" 
                                        SelectedValue='<%# Bind("Orden") %>'>
                                        <asp:ListItem>0</asp:ListItem>
                                        <asp:ListItem>1</asp:ListItem>
                                        <asp:ListItem>2</asp:ListItem>
                                        <asp:ListItem>3</asp:ListItem>
                                        <asp:ListItem>4</asp:ListItem>
                                        <asp:ListItem>5</asp:ListItem>
                                        <asp:ListItem>6</asp:ListItem>
                                        <asp:ListItem>7</asp:ListItem>
                                        <asp:ListItem>8</asp:ListItem>
                                        <asp:ListItem>9</asp:ListItem>
                                        <asp:ListItem>10</asp:ListItem>
                                        <asp:ListItem>11</asp:ListItem>
                                        <asp:ListItem>12</asp:ListItem>
                                        <asp:ListItem>13</asp:ListItem>
                                        <asp:ListItem>14</asp:ListItem>
                                        <asp:ListItem>15</asp:ListItem>
                                        <asp:ListItem>16</asp:ListItem>
                                        <asp:ListItem>17</asp:ListItem>
                                        <asp:ListItem>18</asp:ListItem>
                                        <asp:ListItem>19</asp:ListItem>
                                        <asp:ListItem>20</asp:ListItem>
                                        <asp:ListItem>21</asp:ListItem>
                                        <asp:ListItem>22</asp:ListItem>
                                        <asp:ListItem>23</asp:ListItem>
                                        <asp:ListItem>24</asp:ListItem>
                                        <asp:ListItem>25</asp:ListItem>
                                        <asp:ListItem>26</asp:ListItem>
                                        <asp:ListItem>27</asp:ListItem>
                                        <asp:ListItem>28</asp:ListItem>
                                        <asp:ListItem>29</asp:ListItem>
                                        <asp:ListItem>30</asp:ListItem>
                                        <asp:ListItem>31</asp:ListItem>
                                        <asp:ListItem>32</asp:ListItem>
                                        <asp:ListItem>33</asp:ListItem>
                                        <asp:ListItem>34</asp:ListItem>
                                        <asp:ListItem>35</asp:ListItem>
                                        <asp:ListItem>36</asp:ListItem>
                                        <asp:ListItem>37</asp:ListItem>
                                        <asp:ListItem>38</asp:ListItem>
                                        <asp:ListItem>39</asp:ListItem>
                                        <asp:ListItem>40</asp:ListItem>
                                        <asp:ListItem>41</asp:ListItem>
                                        <asp:ListItem>42</asp:ListItem>
                                        <asp:ListItem>43</asp:ListItem>
                                        <asp:ListItem>44</asp:ListItem>
                                        <asp:ListItem>45</asp:ListItem>
                                        <asp:ListItem>46</asp:ListItem>
                                        <asp:ListItem>47</asp:ListItem>
                                        <asp:ListItem>48</asp:ListItem>
                                        <asp:ListItem>49</asp:ListItem>
                                        <asp:ListItem>50</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                                        CommandName="Insert" Text="Agregar" ValidationGroup="Insertar" />
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        ReponerCantidadString:
                        <asp:Label ID="ReponerCantidadStringLabel" runat="server" 
                            Text='<%# Bind("ReponerCantidadString") %>' />
                        <br />
                        ReacondicionarCantidadString:
                        <asp:Label ID="ReacondicionarCantidadStringLabel" runat="server" 
                            Text='<%# Bind("ReacondicionarCantidadString") %>' />
                        <br />
                        PintarCantidadString:
                        <asp:Label ID="PintarCantidadStringLabel" runat="server" 
                            Text='<%# Bind("PintarCantidadString") %>' />
                        <br />
                        ID:
                        <asp:Label ID="IDLabel" runat="server" Text='<%# Bind("ID") %>' />
                        <br />
                        Item:
                        <asp:Label ID="ItemLabel" runat="server" Text='<%# Bind("Item") %>' />
                        <br />
                        SubGrupo:
                        <asp:Label ID="SubGrupoLabel" runat="server" Text='<%# Bind("SubGrupo") %>' />
                        <br />
                        Grupo:
                        <asp:Label ID="GrupoLabel" runat="server" Text='<%# Bind("Grupo") %>' />
                        <br />
                        Unidad:
                        <asp:Label ID="UnidadLabel" runat="server" Text='<%# Bind("Unidad") %>' />
                        <br />
                        Controlar:
                        <asp:CheckBox ID="ControlarCheckBox" runat="server" 
                            Checked='<%# Bind("Controlar") %>' Enabled="false" />
                        <br />
                        Pintar:
                        <asp:CheckBox ID="PintarCheckBox" runat="server" 
                            Checked='<%# Bind("Pintar") %>' Enabled="false" />
                        <br />
                        Reacondicionar:
                        <asp:CheckBox ID="ReacondicionarCheckBox" runat="server" 
                            Checked='<%# Bind("Reacondicionar") %>' Enabled="false" />
                        <br />
                        Reponer:
                        <asp:CheckBox ID="ReponerCheckBox" runat="server" 
                            Checked='<%# Bind("Reponer") %>' Enabled="false" />
                        <br />
                        Columna:
                        <asp:Label ID="ColumnaLabel" runat="server" Text='<%# Bind("Columna") %>' />
                        <br />
                        Orden:
                        <asp:Label ID="OrdenLabel" runat="server" Text='<%# Bind("Orden") %>' />
                        <br />
                        IdPresupuesto:
                        <asp:Label ID="IdPresupuestoLabel" runat="server" 
                            Text='<%# Bind("IdPresupuesto") %>' />
                        <br />
                        ReponerCantidad:
                        <asp:Label ID="ReponerCantidadLabel" runat="server" 
                            Text='<%# Bind("ReponerCantidad") %>' />
                        <br />
                        ReacondicionarCantidad:
                        <asp:Label ID="ReacondicionarCantidadLabel" runat="server" 
                            Text='<%# Bind("ReacondicionarCantidad") %>' />
                        <br />
                        PintarCantidad:
                        <asp:Label ID="PintarCantidadLabel" runat="server" 
                            Text='<%# Bind("PintarCantidad") %>' />
                        <br />
                        EsExtra:
                        <asp:CheckBox ID="EsExtraCheckBox" runat="server" 
                            Checked='<%# Bind("EsExtra") %>' Enabled="false" />
                        <br />
                    </ItemTemplate>
                </asp:FormView>
                <asp:ObjectDataSource ID="dsElementoNuevo" runat="server" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="ObtenerElementosPorPresupuestoDAL" 
                    TypeName="SGT_ON.ONElemento" DataObjectTypeName="SGT_ON.ONElemento" 
                    InsertMethod="Insertar" oninserting="dsElementoNuevo_Inserting" 
                    oninserted="dsElementoNuevo_Inserted">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="-1" Name="pIDPresupuesto" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td>
                <div __designer:mapid="33b7">
                    <table class="style1" __designer:mapid="33b8">
                        <tr __designer:mapid="33b9">
                            <td colspan = "2" __designer:mapid="33ba">
                              
                            </td>
                        </tr>
                        <tr __designer:mapid="33dd">
                            <td colspan = "2" align="center" class="style1" __designer:mapid="33de">
                                <b __designer:mapid="33df">CARROCERIA - TAPICERIA - ELECTRICIDAD</b></td>
                        </tr>
                        <tr __designer:mapid="33e0">
                            <td valign="top" __designer:mapid="33e1">
                                <dxwgv:ASPxGridView runat="server" ClientInstanceName="grilla1" 
                                    CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" 
                                    KeyFieldName="ID" AutoGenerateColumns="False" 
                                    DataSourceID="dsElementosColumna11" ID="Columna1" Style="text-align: left">
                                    <Columns>
                                        <dxwgv:GridViewDataTextColumn FieldName="Item" VisibleIndex="0">
                                            <DataItemTemplate>
                                                <asp:TextBox ID="txtItem" runat="server" CssClass="textBox_Altura_de_Elemento" 
                                                                Text='<%# Eval("Item") %>' Width="100%"></asp:TextBox>
                                            </DataItemTemplate>
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Orden" 
                                            Caption="Orden" VisibleIndex="1">
                                            <DataItemTemplate>
                                                <asp:DropDownList ID="OrdenDdl" runat="server" 
                                                    SelectedValue='<%# Eval("Orden") %>'>
                                                    <asp:ListItem>0</asp:ListItem>
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                    <asp:ListItem>6</asp:ListItem>
                                                    <asp:ListItem>7</asp:ListItem>
                                                    <asp:ListItem>8</asp:ListItem>
                                                    <asp:ListItem>9</asp:ListItem>
                                                    <asp:ListItem>10</asp:ListItem>
                                                    <asp:ListItem>11</asp:ListItem>
                                                    <asp:ListItem>12</asp:ListItem>
                                                    <asp:ListItem>13</asp:ListItem>
                                                    <asp:ListItem>14</asp:ListItem>
                                                    <asp:ListItem>15</asp:ListItem>
                                                    <asp:ListItem>16</asp:ListItem>
                                                    <asp:ListItem>17</asp:ListItem>
                                                    <asp:ListItem>18</asp:ListItem>
                                                    <asp:ListItem>19</asp:ListItem>
                                                    <asp:ListItem>20</asp:ListItem>
                                                    <asp:ListItem>21</asp:ListItem>
                                                    <asp:ListItem>22</asp:ListItem>
                                                    <asp:ListItem>23</asp:ListItem>
                                                    <asp:ListItem>24</asp:ListItem>
                                                    <asp:ListItem>25</asp:ListItem>
                                                    <asp:ListItem>26</asp:ListItem>
                                                    <asp:ListItem>27</asp:ListItem>
                                                    <asp:ListItem>28</asp:ListItem>
                                                    <asp:ListItem>29</asp:ListItem>
                                                    <asp:ListItem>30</asp:ListItem>
                                                    <asp:ListItem>31</asp:ListItem>
                                                    <asp:ListItem>32</asp:ListItem>
                                                    <asp:ListItem>33</asp:ListItem>
                                                    <asp:ListItem>34</asp:ListItem>
                                                    <asp:ListItem>35</asp:ListItem>
                                                    <asp:ListItem>36</asp:ListItem>
                                                    <asp:ListItem>37</asp:ListItem>
                                                    <asp:ListItem>38</asp:ListItem>
                                                    <asp:ListItem>39</asp:ListItem>
                                                    <asp:ListItem>40</asp:ListItem>
                                                    <asp:ListItem>41</asp:ListItem>
                                                    <asp:ListItem>42</asp:ListItem>
                                                    <asp:ListItem>43</asp:ListItem>
                                                    <asp:ListItem>44</asp:ListItem>
                                                    <asp:ListItem>45</asp:ListItem>
                                                    <asp:ListItem>46</asp:ListItem>
                                                    <asp:ListItem>47</asp:ListItem>
                                                    <asp:ListItem>48</asp:ListItem>
                                                    <asp:ListItem>49</asp:ListItem>
                                                    <asp:ListItem>50</asp:ListItem>
                                                </asp:DropDownList>
                                            </DataItemTemplate>                                            
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Grupo" VisibleIndex="2" GroupIndex="0" 
                                            SortIndex="0" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="SubGrupo" VisibleIndex="3" GroupIndex="1" 
                                            SortIndex="1" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewCommandColumn Caption=" " VisibleIndex="4">
                                            <DeleteButton Text="Eliminar" Visible="True">
                                            </DeleteButton>
                                            <ClearFilterButton Visible="True">
                                            </ClearFilterButton>
                                        </dxwgv:GridViewCommandColumn>
                                    </Columns>
                                    <SettingsPager Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Images ImageFolder="~/App_Themes/Glass/{0}/">
                                        <CollapsedButton Height="12px" Width="11px">
                                        </CollapsedButton>
                                        <DetailCollapsedButton Height="9px" Width="9px">
                                        </DetailCollapsedButton>
                                        <HeaderFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilter.png">
                                        </HeaderFilter>
                                        <HeaderActiveFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilterActive.png">
                                        </HeaderActiveFilter>
                                        <FilterRowButton Height="13px" Width="13px">
                                        </FilterRowButton>
                                        <CustomizationWindowClose Height="17px" Width="17px">
                                        </CustomizationWindowClose>
                                        <PopupEditFormWindowClose Height="17px" Width="17px">
                                        </PopupEditFormWindowClose>
                                        <FilterBuilderClose Height="17px" Width="17px">
                                        </FilterBuilderClose>
                                    </Images>
                                    <SettingsBehavior AutoExpandAllGroups="True" ConfirmDelete="True" />
                                    <Styles CssPostfix="Glass" CssFilePath="~/App_Themes/Glass/{0}/styles.css">
                                        <Header SortingImageSpacing="5px" ImageSpacing="5px">
                                        </Header>
                                    </Styles>
                                    <StylesEditors>
                                        <ProgressBar Height="25px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dxwgv:ASPxGridView>
                            </td>
                            <td valign="top" __designer:mapid="3424">
                                 <dxwgv:ASPxGridView runat="server" ClientInstanceName="grilla1" 
                                    CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" 
                                    KeyFieldName="ID" AutoGenerateColumns="False" 
                                    DataSourceID="dsElementosColumna12" ID="Columna2" Style="text-align: left">
                                    <Columns>
                                        <dxwgv:GridViewDataTextColumn FieldName="Item" VisibleIndex="0">
                                            <DataItemTemplate>
                                                <asp:TextBox ID="txtItem" runat="server" CssClass="textBox_Altura_de_Elemento" 
                                                                Text='<%# Eval("Item") %>' Width="100%"></asp:TextBox>
                                            </DataItemTemplate>
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Orden" 
                                            Caption="Orden" VisibleIndex="1">
                                            <DataItemTemplate>
                                                <asp:DropDownList ID="OrdenDdl" runat="server" 
                                                    SelectedValue='<%# Eval("Orden") %>'>
                                                    <asp:ListItem>0</asp:ListItem>
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                    <asp:ListItem>6</asp:ListItem>
                                                    <asp:ListItem>7</asp:ListItem>
                                                    <asp:ListItem>8</asp:ListItem>
                                                    <asp:ListItem>9</asp:ListItem>
                                                    <asp:ListItem>10</asp:ListItem>
                                                    <asp:ListItem>11</asp:ListItem>
                                                    <asp:ListItem>12</asp:ListItem>
                                                    <asp:ListItem>13</asp:ListItem>
                                                    <asp:ListItem>14</asp:ListItem>
                                                    <asp:ListItem>15</asp:ListItem>
                                                    <asp:ListItem>16</asp:ListItem>
                                                    <asp:ListItem>17</asp:ListItem>
                                                    <asp:ListItem>18</asp:ListItem>
                                                    <asp:ListItem>19</asp:ListItem>
                                                    <asp:ListItem>20</asp:ListItem>
                                                    <asp:ListItem>21</asp:ListItem>
                                                    <asp:ListItem>22</asp:ListItem>
                                                    <asp:ListItem>23</asp:ListItem>
                                                    <asp:ListItem>24</asp:ListItem>
                                                    <asp:ListItem>25</asp:ListItem>
                                                    <asp:ListItem>26</asp:ListItem>
                                                    <asp:ListItem>27</asp:ListItem>
                                                    <asp:ListItem>28</asp:ListItem>
                                                    <asp:ListItem>29</asp:ListItem>
                                                    <asp:ListItem>30</asp:ListItem>
                                                    <asp:ListItem>31</asp:ListItem>
                                                    <asp:ListItem>32</asp:ListItem>
                                                    <asp:ListItem>33</asp:ListItem>
                                                    <asp:ListItem>34</asp:ListItem>
                                                    <asp:ListItem>35</asp:ListItem>
                                                    <asp:ListItem>36</asp:ListItem>
                                                    <asp:ListItem>37</asp:ListItem>
                                                    <asp:ListItem>38</asp:ListItem>
                                                    <asp:ListItem>39</asp:ListItem>
                                                    <asp:ListItem>40</asp:ListItem>
                                                    <asp:ListItem>41</asp:ListItem>
                                                    <asp:ListItem>42</asp:ListItem>
                                                    <asp:ListItem>43</asp:ListItem>
                                                    <asp:ListItem>44</asp:ListItem>
                                                    <asp:ListItem>45</asp:ListItem>
                                                    <asp:ListItem>46</asp:ListItem>
                                                    <asp:ListItem>47</asp:ListItem>
                                                    <asp:ListItem>48</asp:ListItem>
                                                    <asp:ListItem>49</asp:ListItem>
                                                    <asp:ListItem>50</asp:ListItem>
                                                </asp:DropDownList>
                                            </DataItemTemplate>                                            
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Grupo" VisibleIndex="2" GroupIndex="0" 
                                            SortIndex="0" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="SubGrupo" VisibleIndex="3" GroupIndex="1" 
                                            SortIndex="1" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewCommandColumn Caption=" " VisibleIndex="4">
                                            <DeleteButton Text="Eliminar" Visible="True">
                                            </DeleteButton>
                                            <ClearFilterButton Visible="True">
                                            </ClearFilterButton>
                                        </dxwgv:GridViewCommandColumn>
                                    </Columns>
                                    <SettingsPager Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Images ImageFolder="~/App_Themes/Glass/{0}/">
                                        <CollapsedButton Height="12px" Width="11px">
                                        </CollapsedButton>
                                        <DetailCollapsedButton Height="9px" Width="9px">
                                        </DetailCollapsedButton>
                                        <HeaderFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilter.png">
                                        </HeaderFilter>
                                        <HeaderActiveFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilterActive.png">
                                        </HeaderActiveFilter>
                                        <FilterRowButton Height="13px" Width="13px">
                                        </FilterRowButton>
                                        <CustomizationWindowClose Height="17px" Width="17px">
                                        </CustomizationWindowClose>
                                        <PopupEditFormWindowClose Height="17px" Width="17px">
                                        </PopupEditFormWindowClose>
                                        <FilterBuilderClose Height="17px" Width="17px">
                                        </FilterBuilderClose>
                                    </Images>
                                    <SettingsBehavior AutoExpandAllGroups="True" ConfirmDelete="True" />
                                    <Styles CssPostfix="Glass" CssFilePath="~/App_Themes/Glass/{0}/styles.css">
                                        <Header SortingImageSpacing="5px" ImageSpacing="5px">
                                        </Header>
                                    </Styles>
                                    <StylesEditors>
                                        <ProgressBar Height="25px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dxwgv:ASPxGridView>
                            </td>
                        </tr>
                        <tr __designer:mapid="3467">
                            <td colspan="2" align="center" __designer:mapid="3468">
                                <b __designer:mapid="3469">MECANICA - TRENES RODANTES</b>
                            </td>
                        </tr>
                        <tr __designer:mapid="346a">
                            <td valign="top" __designer:mapid="346b">
                                <dxwgv:ASPxGridView runat="server" ClientInstanceName="grilla1" 
                                    CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" 
                                    KeyFieldName="ID" AutoGenerateColumns="False" 
                                    DataSourceID="dsElementosColumna21" ID="Columna3" Style="text-align: left">
                                    <Columns>
                                        <dxwgv:GridViewDataTextColumn FieldName="Item" VisibleIndex="0">
                                            <DataItemTemplate>
                                                <asp:TextBox ID="txtItem" runat="server" CssClass="textBox_Altura_de_Elemento" 
                                                                Text='<%# Eval("Item") %>' Width="100%"></asp:TextBox>
                                            </DataItemTemplate>
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Orden" 
                                            Caption="Orden" VisibleIndex="1">
                                            <DataItemTemplate>
                                                <asp:DropDownList ID="OrdenDdl" runat="server" 
                                                    SelectedValue='<%# Eval("Orden") %>'>
                                                    <asp:ListItem>0</asp:ListItem>
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                    <asp:ListItem>6</asp:ListItem>
                                                    <asp:ListItem>7</asp:ListItem>
                                                    <asp:ListItem>8</asp:ListItem>
                                                    <asp:ListItem>9</asp:ListItem>
                                                    <asp:ListItem>10</asp:ListItem>
                                                    <asp:ListItem>11</asp:ListItem>
                                                    <asp:ListItem>12</asp:ListItem>
                                                    <asp:ListItem>13</asp:ListItem>
                                                    <asp:ListItem>14</asp:ListItem>
                                                    <asp:ListItem>15</asp:ListItem>
                                                    <asp:ListItem>16</asp:ListItem>
                                                    <asp:ListItem>17</asp:ListItem>
                                                    <asp:ListItem>18</asp:ListItem>
                                                    <asp:ListItem>19</asp:ListItem>
                                                    <asp:ListItem>20</asp:ListItem>
                                                    <asp:ListItem>21</asp:ListItem>
                                                    <asp:ListItem>22</asp:ListItem>
                                                    <asp:ListItem>23</asp:ListItem>
                                                    <asp:ListItem>24</asp:ListItem>
                                                    <asp:ListItem>25</asp:ListItem>
                                                    <asp:ListItem>26</asp:ListItem>
                                                    <asp:ListItem>27</asp:ListItem>
                                                    <asp:ListItem>28</asp:ListItem>
                                                    <asp:ListItem>29</asp:ListItem>
                                                    <asp:ListItem>30</asp:ListItem>
                                                    <asp:ListItem>31</asp:ListItem>
                                                    <asp:ListItem>32</asp:ListItem>
                                                    <asp:ListItem>33</asp:ListItem>
                                                    <asp:ListItem>34</asp:ListItem>
                                                    <asp:ListItem>35</asp:ListItem>
                                                    <asp:ListItem>36</asp:ListItem>
                                                    <asp:ListItem>37</asp:ListItem>
                                                    <asp:ListItem>38</asp:ListItem>
                                                    <asp:ListItem>39</asp:ListItem>
                                                    <asp:ListItem>40</asp:ListItem>
                                                    <asp:ListItem>41</asp:ListItem>
                                                    <asp:ListItem>42</asp:ListItem>
                                                    <asp:ListItem>43</asp:ListItem>
                                                    <asp:ListItem>44</asp:ListItem>
                                                    <asp:ListItem>45</asp:ListItem>
                                                    <asp:ListItem>46</asp:ListItem>
                                                    <asp:ListItem>47</asp:ListItem>
                                                    <asp:ListItem>48</asp:ListItem>
                                                    <asp:ListItem>49</asp:ListItem>
                                                    <asp:ListItem>50</asp:ListItem>
                                                </asp:DropDownList>
                                            </DataItemTemplate>
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Grupo" VisibleIndex="2" GroupIndex="0" 
                                            SortIndex="0" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="SubGrupo" VisibleIndex="3" GroupIndex="1" 
                                            SortIndex="1" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewCommandColumn Caption=" " VisibleIndex="4">
                                            <DeleteButton Text="Eliminar" Visible="True">
                                            </DeleteButton>
                                            <ClearFilterButton Visible="True">
                                            </ClearFilterButton>
                                        </dxwgv:GridViewCommandColumn>
                                    </Columns>
                                    <SettingsPager Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Images ImageFolder="~/App_Themes/Glass/{0}/">
                                        <CollapsedButton Height="12px" Width="11px">
                                        </CollapsedButton>
                                        <DetailCollapsedButton Height="9px" Width="9px">
                                        </DetailCollapsedButton>
                                        <HeaderFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilter.png">
                                        </HeaderFilter>
                                        <HeaderActiveFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilterActive.png">
                                        </HeaderActiveFilter>
                                        <FilterRowButton Height="13px" Width="13px">
                                        </FilterRowButton>
                                        <CustomizationWindowClose Height="17px" Width="17px">
                                        </CustomizationWindowClose>
                                        <PopupEditFormWindowClose Height="17px" Width="17px">
                                        </PopupEditFormWindowClose>
                                        <FilterBuilderClose Height="17px" Width="17px">
                                        </FilterBuilderClose>
                                    </Images>
                                    <SettingsBehavior AutoExpandAllGroups="True" ConfirmDelete="True" />
                                    <Styles CssPostfix="Glass" CssFilePath="~/App_Themes/Glass/{0}/styles.css">
                                        <Header SortingImageSpacing="5px" ImageSpacing="5px">
                                        </Header>
                                    </Styles>
                                    <StylesEditors>
                                        <ProgressBar Height="25px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dxwgv:ASPxGridView>
                            </td>
                            <td valign="top" __designer:mapid="34ae">
                                <dxwgv:ASPxGridView runat="server" ClientInstanceName="grilla1" 
                                    CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" 
                                    KeyFieldName="ID" AutoGenerateColumns="False" 
                                    DataSourceID="dsElementosColumna22" ID="Columna4" Style="text-align: left">
                                    <Columns>
                                        <dxwgv:GridViewDataTextColumn FieldName="Item" VisibleIndex="0">
                                            <DataItemTemplate>
                                                <asp:TextBox ID="txtItem" runat="server" CssClass="textBox_Altura_de_Elemento" 
                                                                Text='<%# Eval("Item") %>' Width="100%"></asp:TextBox>
                                            </DataItemTemplate>
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Orden" 
                                            Caption="Orden" VisibleIndex="1">
                                            <DataItemTemplate>
                                                <asp:DropDownList ID="OrdenDdl" runat="server" 
                                                    SelectedValue='<%# Eval("Orden") %>'>
                                                    <asp:ListItem>0</asp:ListItem>
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                    <asp:ListItem>6</asp:ListItem>
                                                    <asp:ListItem>7</asp:ListItem>
                                                    <asp:ListItem>8</asp:ListItem>
                                                    <asp:ListItem>9</asp:ListItem>
                                                    <asp:ListItem>10</asp:ListItem>
                                                    <asp:ListItem>11</asp:ListItem>
                                                    <asp:ListItem>12</asp:ListItem>
                                                    <asp:ListItem>13</asp:ListItem>
                                                    <asp:ListItem>14</asp:ListItem>
                                                    <asp:ListItem>15</asp:ListItem>
                                                    <asp:ListItem>16</asp:ListItem>
                                                    <asp:ListItem>17</asp:ListItem>
                                                    <asp:ListItem>18</asp:ListItem>
                                                    <asp:ListItem>19</asp:ListItem>
                                                    <asp:ListItem>20</asp:ListItem>
                                                    <asp:ListItem>21</asp:ListItem>
                                                    <asp:ListItem>22</asp:ListItem>
                                                    <asp:ListItem>23</asp:ListItem>
                                                    <asp:ListItem>24</asp:ListItem>
                                                    <asp:ListItem>25</asp:ListItem>
                                                    <asp:ListItem>26</asp:ListItem>
                                                    <asp:ListItem>27</asp:ListItem>
                                                    <asp:ListItem>28</asp:ListItem>
                                                    <asp:ListItem>29</asp:ListItem>
                                                    <asp:ListItem>30</asp:ListItem>
                                                    <asp:ListItem>31</asp:ListItem>
                                                    <asp:ListItem>32</asp:ListItem>
                                                    <asp:ListItem>33</asp:ListItem>
                                                    <asp:ListItem>34</asp:ListItem>
                                                    <asp:ListItem>35</asp:ListItem>
                                                    <asp:ListItem>36</asp:ListItem>
                                                    <asp:ListItem>37</asp:ListItem>
                                                    <asp:ListItem>38</asp:ListItem>
                                                    <asp:ListItem>39</asp:ListItem>
                                                    <asp:ListItem>40</asp:ListItem>
                                                    <asp:ListItem>41</asp:ListItem>
                                                    <asp:ListItem>42</asp:ListItem>
                                                    <asp:ListItem>43</asp:ListItem>
                                                    <asp:ListItem>44</asp:ListItem>
                                                    <asp:ListItem>45</asp:ListItem>
                                                    <asp:ListItem>46</asp:ListItem>
                                                    <asp:ListItem>47</asp:ListItem>
                                                    <asp:ListItem>48</asp:ListItem>
                                                    <asp:ListItem>49</asp:ListItem>
                                                    <asp:ListItem>50</asp:ListItem>
                                                </asp:DropDownList>
                                            </DataItemTemplate>
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="Grupo" VisibleIndex="2" GroupIndex="0" 
                                            SortIndex="0" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn FieldName="SubGrupo" VisibleIndex="3" GroupIndex="1" 
                                            SortIndex="1" SortOrder="Ascending">
                                        </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewCommandColumn Caption=" " VisibleIndex="4">
                                            <DeleteButton Text="Eliminar" Visible="True">
                                            </DeleteButton>
                                            <ClearFilterButton Visible="True">
                                            </ClearFilterButton>
                                        </dxwgv:GridViewCommandColumn>
                                    </Columns>
                                    <SettingsPager Mode="ShowAllRecords">
                                    </SettingsPager>
                                    <Images ImageFolder="~/App_Themes/Glass/{0}/">
                                        <CollapsedButton Height="12px" Width="11px">
                                        </CollapsedButton>
                                        <DetailCollapsedButton Height="9px" Width="9px">
                                        </DetailCollapsedButton>
                                        <HeaderFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilter.png">
                                        </HeaderFilter>
                                        <HeaderActiveFilter Height="18px" Width="18px" 
                                            Url="~/App_Themes/Glass/GridView/gvHeaderFilterActive.png">
                                        </HeaderActiveFilter>
                                        <FilterRowButton Height="13px" Width="13px">
                                        </FilterRowButton>
                                        <CustomizationWindowClose Height="17px" Width="17px">
                                        </CustomizationWindowClose>
                                        <PopupEditFormWindowClose Height="17px" Width="17px">
                                        </PopupEditFormWindowClose>
                                        <FilterBuilderClose Height="17px" Width="17px">
                                        </FilterBuilderClose>
                                    </Images>
                                    <SettingsBehavior AutoExpandAllGroups="True" ConfirmDelete="True" />
                                    <Styles CssPostfix="Glass" CssFilePath="~/App_Themes/Glass/{0}/styles.css">
                                        <Header SortingImageSpacing="5px" ImageSpacing="5px">
                                        </Header>
                                    </Styles>
                                    <StylesEditors>
                                        <ProgressBar Height="25px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dxwgv:ASPxGridView>
                            </td>
                        </tr>
                    </table>
                </div>
                <dxe:ASPxButton ID="btnGuardar" runat="server" 
                    CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                    CssPostfix="Office2003_Blue" onclick="btnGuardar_Click" Text="Guardar">
                </dxe:ASPxButton>
                <br __designer:mapid="351b" />
                <asp:ObjectDataSource runat="server" DataObjectTypeName="SGT_ON.ONElemento" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="ObtenerElementosDePresupuestoPorColumnaDAL" 
                    TypeName="SGT_ON.ONElementoColeccion" UpdateMethod="ActualizarElemento" 
                    ID="dsElementosColumna11" DeleteMethod="Eliminar">
                    <DeleteParameters>
                        <asp:Parameter Name="pId" Type="Int32" />
                    </DeleteParameters>
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="pIDPresupuesto" Type="Int32" />
                        <asp:Parameter DefaultValue="11" Name="pColumna" Type="Int32"></asp:Parameter>
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource runat="server" DataObjectTypeName="SGT_ON.ONElemento" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="ObtenerElementosDePresupuestoPorColumnaDAL" 
                    TypeName="SGT_ON.ONElementoColeccion" UpdateMethod="ActualizarElemento" 
                    ID="dsElementosColumna12" DeleteMethod="Eliminar">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="pIDPresupuesto" Type="Int32" />
                        <asp:Parameter DefaultValue="12" Name="pColumna" Type="Int32"></asp:Parameter>
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource runat="server" DataObjectTypeName="SGT_ON.ONElemento" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="ObtenerElementosDePresupuestoPorColumnaDAL" 
                    TypeName="SGT_ON.ONElementoColeccion" UpdateMethod="ActualizarElemento" 
                    ID="dsElementosColumna21" DeleteMethod="Eliminar">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="pIDPresupuesto" Type="Int32" />
                        <asp:Parameter DefaultValue="21" Name="pColumna" Type="Int32"></asp:Parameter>
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource runat="server" DataObjectTypeName="SGT_ON.ONElemento" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="ObtenerElementosDePresupuestoPorColumnaDAL" 
                    TypeName="SGT_ON.ONElementoColeccion" UpdateMethod="ActualizarElemento" 
                    ID="dsElementosColumna22" DeleteMethod="Eliminar">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="pIDPresupuesto" Type="Int32" />
                        <asp:Parameter DefaultValue="22" Name="pColumna" Type="Int32"></asp:Parameter>
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

